﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessEntity;
using BusinessService;

namespace BusinessLogic
{
    public class ArticleManager
    {
        ArticleService arts =new ArticleService();
        public int AddNew(Article model)
        {
            return arts.AddNew(model);
        }

        public bool Delete(int id)
        {
            return arts.Delete(id);
        }

        public bool Update(Article model)
        {
            return arts.Update(model);
        }

        public Article Get(int id)
        {
            return arts.Get(id);
        }

        public IEnumerable<Article> ListAll()
        {
            return arts.ListAll();
        }

    }
}
